import { request, config } from 'utils';
import { stringify } from 'qs';
const {
  api: {
    logs: { apigetloginlist, apigetoperationlist,apigetbackuplist,apigetrealtimelist },
    recursivemgt: {
      transpond: {
        apigetalldevices,
      },
    },
  },
} = config;

export function getLoginList(params) {
  return request(`${apigetloginlist}?${stringify(params)}`);
}

export function getOperationList(params) {
  return request(`${apigetoperationlist}?${stringify(params)}`);
}

export function getBackupList(params) {
  return request(`${apigetbackuplist}?${stringify(params)}`);
}

export function getRealTimeLogs(params) {
  return request(`${apigetrealtimelist}?${stringify(params)}`);
}

export function getAllDevices(params) {
  return request(`${apigetalldevices}?${stringify(params)}`);
}

